<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript操作符-赋值运算符</title>
</head>

<body>
    <p id="demo"></p>
    <script>
        //JavaScript使用赋值运算符给变量赋值：
        var x, y, z;
        x = 5;
        y = 6;
        z = (x + y) * 10;
        document.getElementById("demo").innerHTML = z;  //110
    </script>
</body>

</html>